package com.mrjy.queries.dao;

import java.util.List;

import com.mrjy.common.entity.QuestionGoodInfo;
import com.mrjy.queries.dto.QuestionGoodInfoDTO;

public interface IQuestionGoodInfoDao {
	
	/**
	 * 根据user_id与question_id查询
	 * @param goodInfo
	 * @return
	 */
	QuestionGoodInfo queryQuestionGood(QuestionGoodInfo goodInfo);
	
	//插入
	int insert(QuestionGoodInfo good);
	
	/**
	 * 统计点赞未读信息
	 * @param user_id
	 * @return
	 */
	int countNoReadGood(int userId);
	
	/**
	 * 未读赞标志状态为已读
	 * @param ids
	 * @return
	 */
	int readGood(QuestionGoodInfo goodInfo);

	QuestionGoodInfo queryExist(QuestionGoodInfo info);

	public int updateReadFlagToReaded(Integer id);

	List<QuestionGoodInfoDTO> queryMyPraise();

	QuestionGoodInfoDTO queryMyPraiseById(Integer userId);
		

}
